﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TimKiem.aspx.cs" Inherits="WebApplication2.TimKiem" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 48%;
        }
        .style2
        {
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table class="style1">
        <tr>
            <td colspan="2">
                <asp:Label ID="Label1" runat="server" Text="Vào khoảng đơn giá cần tìn"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label2" runat="server" Text="từ"></asp:Label>
                <asp:TextBox ID="txt1" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="Label3" runat="server" Text="đến"></asp:Label>
                <asp:TextBox ID="txt2" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2" colspan="2">
                <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="btntim" />
            </td>
        </tr>
    </table>
    <div>
    
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="MaSach" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="MaSach" HeaderText="MaSach" ReadOnly="True" 
                    SortExpression="MaSach" />
                <asp:BoundField DataField="TenSach" HeaderText="TenSach" 
                    SortExpression="TenSach" />
                <asp:BoundField DataField="TheLoai" HeaderText="TheLoai" 
                    SortExpression="TheLoai" />
                <asp:BoundField DataField="SoTrang" HeaderText="SoTrang" 
                    SortExpression="SoTrang" />
                <asp:BoundField DataField="DonGia" HeaderText="DonGia" 
                    SortExpression="DonGia" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:QLThuVienConnectionString5 %>" 
            SelectCommand="SELECT * FROM [Sach]"></asp:SqlDataSource>
    
    </div>
    </form>
</body>
</html>
